package com.niiwoo.civet.trade.dto.request.loan;

import com.niiwoo.civet.trade.enums.LoanSubmitTypeEnum;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @Author: wuke
 * @Description:
 * @Date: Created in 17:40 2018/4/13
 */
@Data
public class LoanSubmitCommReqDTO implements Serializable {
    private static final long serialVersionUID = -7118214710813133913L;

    @NotNull(message = "用户ID不能为空")
    private String userId;

    @NotNull(message = "借款提交类型不能为空")
    private LoanSubmitTypeEnum loanSubmitTypeEnum;

    @NotNull(message = "借款来源不能为空")
    //标的申请来源（1、APP，2、H5活动，3、H5极速借, 4、融360, 5、卡牛）
    private Byte fromSource;

    @NotNull(message = "经度不能为空")
    private String longitude;

    @NotNull(message = "纬度不能为空")
    private String latitude;

    @NotNull(message = "省份不能为空")
    private String province;

    @NotNull(message = "城市不能为空")
    private String city;

    @NotNull(message = "区不能为空")
    private String area;
}
